-
-
Notifications
You must be signed in to change notification settings - Fork 121
style: improve question submission form UI #164
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
I think it's better to keep the current way of asking it. We shouldn't ask it in such a specific way that the person will be identifiable from the date. What do you think? |
I agree with @ykdojo. And I don't think anyone would remember the exact date and might eventually be forced to just enter a random date or not change the date at all. |
That's a valid point. I did overlook the impact it will have on a creator's privacy. What we can do is remove the recency/asked_date altogether and let the reader measure the freshness of a question from its creation date. This will save us from asking a specific question as well as from storing a vague field in the database. |
I think it is valuable to have this piece of info even if it's not exact, though? |
It is valuable. My concern is more about the fact that we will have to generate an exact date using |
Asking for |
Yes, asking for You might have to implement a custom date picker. Let me know if you need any help with that. |
The Broke |
@iShibi thank you. One quick thing - I think it's important that the current month is selected by default so we don't add unnecessary friction to the whole process. |
Also maybe the current year as well. I think it can also be a select input listing only last 5-10 years. I'm still not sure about having two separate fields. Having one date field would also allow querying a particular month or year independently as well. Doesn't matter too much I guess. Also, I think it might be better if the month is also an integer as a value from 1-12. Thanks. |
Changes:
I kept the year field as |
What I meant for the year is to generate it through JS. I meant something like I'm not too sure about it. Open to discussion. |
@subhoghoshX It's not about JS, in fact, clients will have to create year options during runtime otherwise the options will remain as it is forever if we never run the build again. My concerns are:
|
Makes sense. I just wanted to limit what a user can enter even though we'd check it again through js or on the backend. It sucks that input type="number" doesn't work with I noticed you also made the inputs full width. Applying a little padding like |
@subhoghoshX This validation will make sure that the user can only submit a 4-digit year: |
Yeah I know we're doing it through js. I just wanted a visual indicator there that's all. |
@subhoghoshX It does that too: |
Haha ok. No issues. |
Can we just keep the original method I came up with (asking about the time passed since the interview rather than the month)? It'd be a more accurate approximation of the actual date with that method. Related: #164 (comment) |
It looks good but the UI changes right? So we should probably use the feat label, rather than refactor |
@ykdojo I think we must give option of company tags(initially for only a few), otherwise users will write companies names in different ways. for example - someone may write facebook or facebok. So it will make the Users experience inconsistent because they seeing same company name in different ways. And for reset of the companies they can enter manually if they don't find. What do you think? |
The
receny
field will eventually get converted to aDate
in the database. It's better to ask the specific date from the creator itself.